﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Finance.Dal;
using Finance.Entity;
using Finance.IBll;
using Finance.IDal;

namespace Finance.Bll
{
   public class BankCardBll:IBankCardBll
    {
       IBankCardDal bankCardDal=new BankCardDal();
        public IEnumerable<Entity.BankCardEntity> List(string cardNo, int pageIndex, int pageSize, out int total)
        {
            return bankCardDal.List(cardNo, pageIndex, pageSize, out total);
        }

        public bool Save(BankCardEntity entity)
        {
            return bankCardDal.Save(entity);
        }

        public bool Delete(int id)
        {
            return bankCardDal.Delete(id);
        }


        public object List()
        {
            return bankCardDal.List();
        }
    }
}
